package com.gdsdxy.bookshop.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@ApiModel("订单项目对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName(value = "v_item_book")
public class OItemDto {
    @TableId

    @ApiModelProperty("详细订单编号")
    private Integer itemid;

    @ApiModelProperty("订单编号")
    private Integer orderid;

    @ApiModelProperty("书籍编号")
    private Integer bookid;

    @ApiModelProperty("书籍单价")
    private Integer price;

    @ApiModelProperty("地址编号")
    private Integer addressid;

    @ApiModelProperty("单个订单书籍数量")
    private Integer quantity;

    @ApiModelProperty("书籍总价")
    private Double totalprice;

    @ApiModelProperty("订单状态")
    private Integer status;
}
